import request from '@/utils/request'

// 获取高风险待办事项
export function getRiskTodos(params = {}) {
  return request({
    url: 'risk/getRiskSuggest',
    method: 'get',
    params  // 传入查询参数
  })
}

// 更新待办状态
export function updateTodoStatus(farmlandId, newState) {
  return request({
    url: 'risk/modifyState',
    method: 'post',
    data: {
      farmlandId,
      newState
    }
  })
}